package com.cloudsail.infrastructure.persistent.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudsail.infrastructure.persistent.po.Award;
import com.cloudsail.infrastructure.persistent.po.StrategyAward;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author CloudSailNeverSee
 * @create 2024-10-04 20:58
 * @description
 */
@Mapper
public interface IStrategyAwardDao extends BaseMapper<StrategyAward> {
    List<StrategyAward> queryStrategyAwardList();
    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);
    String queryStrategyAwardRuleModels(StrategyAward strategyAward);

    void updateStrategyAwardStock(StrategyAward strategyAward);

    StrategyAward queryStrategyAward(StrategyAward strategyAwardReq);
}
